/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.ArrayList;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author martin
 */
public class Lista_ordenadaTest {

    public Lista_ordenadaTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of Agregar_a_lista method, of class Lista_ordenada.
     */
    @Test
    public void testAgregar_a_lista() {
        System.out.println("Agregar_a_lista");
        Simbolo elemento = new Simbolo("uno",3);
        Lista_ordenada instance = new Lista_ordenada();
        instance.Agregar_a_lista(elemento);
        int tamano=1;
        assertEquals(tamano,instance.getLista().size());
    }

     /**
     * Test of getLista method, of class Lista_ordenada.
     */
    @Test
    public void testGetLista() {
        System.out.println("getLista");
        Lista_ordenada instance = new Lista_ordenada();
        Simbolo objeto = new Simbolo("uno",3);
        Simbolo expResult = objeto;

        instance.Agregar_a_lista(objeto);
        
        Simbolo result = instance.getLista().get(0);

        assertEquals(expResult, result);

    }
}